using FSM.Model; 
using System; 
using System.Collections.Generic; 
using System.Text; 
 
namespace FSM.IBll 
{ 
    public interface ITbFileLogBll 
    { 
        #region 查询 
        /// <summary> 
        /// 根据键值查询单个信息 
        /// </summary> 
        /// <param name="id">键值</param> 
        /// <returns></returns> 
        tb_file_log Get(int id); 
 
        /// <summary> 
        /// 分页查询批量信息 
        /// </summary> 
        /// <param name="file_id">文件及文件夹ID</param> 
        /// <param name="page">页码</param> 
        /// <param name="page_size">每页显示的条数</param> 
        /// <returns></returns> 
        Tuple<List<tb_file_log>, int> ListPagin(int? file_id, int page, int page_size); 
 
        /// <summary> 
        /// 查询批量信息 
        /// </summary> 
        /// <param name="file_id">文件及文件夹ID</param> 
        /// <returns></returns> 
        List<tb_file_log> List(int? file_id); 
        #endregion 
 
        #region 提交 
        /// <summary> 
        /// 添加当前列表数据 
        /// </summary> 
        /// <param name="model">实体</param> 
        /// <returns></returns> 
        bool Insert(tb_file_log model); 
 
        /// <summary> 
        /// 更新当前列表数据 
        /// </summary> 
        /// <param name="model">实体</param> 
        /// <returns></returns> 
        bool Update(tb_file_log model); 
 
        /// <summary> 
        ///  删除当前列表数据 
        /// </summary> 
        /// <param name="id_arr">键值</param> 
        /// <returns></returns> 
        bool Delete(params int?[] id_arr); 
 
        /// <summary> 
        /// 获得要导出的数据的Excel字节 
        /// </summary> 
        /// <param name="file_id">文件及文件夹ID</param> 
        /// <returns></returns> 
        byte[] Export(int? file_id); 
        #endregion 
    } 
} 
